import Vue from 'vue';
import Router from 'vue-router';
import sysRoute from './sys.route'

import d11companyregister from '../views/business/d100insiup/d11companyregister/d11companyregister.route';
import d12companychange from '../views/business/d100insiup/d12companychange/d12companychange.route';
import d21personinsure from '../views/business/d100insiup/d21personinsure/d21personinsure.route';
import d22personinfo from '../views/business/d100insiup/d22personinfo/d22personinfo.route';
import d23personmerge from '../views/business/d100insiup/d23personmerge/d23personmerge.route';
import d31normalratify from '../views/business/d100insiup/d31normalratify/d31normalratify.route';
import d32spacialratify from '../views/business/d100insiup/d32spacialratify/d32spacialratify.route';
import d33pschargedetail from '../views/business/d100insiup/d33pschargedetail/d33pschargedetail.route';
import d34cpchargedetail from '../views/business/d100insiup/d34cpchargedetail/d34cpchargedetail.route';
import d35wagedeclare from '../views/business/d100insiup/d35wagedeclare/d35wagedeclare.route';
import d41accountquery from '../views/business/d100insiup/d41accountquery/d41accountquery.route';
import d42transferin from '../views/business/d100insiup/d42transferin/d42transferin.route';
import d43transferout from '../views/business/d100insiup/d43transferout/d43transferout.route';
import d44accountmaintain from '../views/business/d100insiup/d44accountmaintain/d44accountmaintain.route';
import d71query from '../views/business/d100insiup/d71query/d71query.route';
import d72statistics from '../views/business/d100insiup/d72statistics/d72statistics.route';

//机关保
import j11companyregister from '../views/business/j110insiup/d11companyregister/d11companyregister.route';
import j12companychange from '../views/business/j110insiup/d12companychange/d12companychange.route';
import j21personinsure from '../views/business/j110insiup/d21personinsure/d21personinsure.route';
import j31normalratify from '../views/business/j110insiup/d31normalratify/d31normalratify.route';
import j32spacialratify from '../views/business/j110insiup/d32spacialratify/d32spacialratify.route';
import j33pschargedetail from '../views/business/j110insiup/d33pschargedetail/d33pschargedetail.route';
import j34cpchargedetail from '../views/business/j110insiup/d34cpchargedetail/d34cpchargedetail.route';
import j35wagedeclare from '../views/business/j110insiup/d35wagedeclare/d35wagedeclare.route';
import j36cpclearing from '../views/business/j110insiup/d36cpclearing/d36cpclearing.route';
import j42transfer from '../views/business/j110insiup/d42transfer/d42transfer.route'
import j43transferout from '../views/business/j110insiup/d43transferout/d43transferout.route';
import j44move from '../views/business/j110insiup/d44move/d44move.route';

//养老待遇
import d11qualification from '../views/business/d101insib/d11qualification/d11qualification.route'
import d12pensionconfirm from '../views/business/d101insib/d12pensionconfirm/d12pensionconfirm.route'
import d21statuschange from '../views/business/d101insib/d21statuschange/d21statuschange.route'
import d22archivesalter from '../views/business/d101insib/d22archivesalter/d22archivesalter.route'
import d24transference from '../views/business/d101insib/d24transference/d24transference.route'
import d31paymentplan from '../views/business/d101insib/d31paymentplan/d31paymentplan.route'
import d32sendtobank from '../views/business/d101insib/d32sendtobank/d32sendtobank.route'
import d33paymenthandle from '../views/business/d101insib/d33paymenthandle/d33paymenthandle.route'
import d41dependantsconfirm from '../views/business/d101insib/d41dependantsconfirm/d41dependantsconfirm.route'
import d42dependantschange from '../views/business/d101insib/d42dependantschange/d42dependantschange.route'
import d51reduceconfirm from '../views/business/d101insib/d51reduceconfirm/d51reduceconfirm.route'
import d52reducechange from '../views/business/d101insib/d52reducechange/d52reducechange.route'
import d61educationpersonmanage from '../views/business/d101insib/d61educationpersonmanage/d61EducationPersonManage.route'
//工伤待遇
import d32injuryconfirm from '../views/business/d102iniii/d32injuryconfirm/d32injuryconfirm.route';
import d22AppraiseTransaction from '../views/business/d102iniii/d22AppraiseTransaction/d22AppraiseTransaction.route';
import d21AppraiseApplication from '../views/business/d102iniii/d21AppraiseApplication/d21AppraiseApplication.route';

import d31injuryqualification from '../views/business/d102iniii/d31injuryqualification/d31injuryqualification.route'
//工伤认定
import d41statusmanagement from '../views/business/d102iniii/d41StatusManagement/d41StatusManagement.route'
import d11CognizeApplication from '../views/business/d102iniii/d11CognizeApplication/d11CognizeApplication.route'
import d43OrgManagement from '../views/business/d102iniii/d43OrgManagement/d43OrgManagement.route'
import d51DependantsConfirm from '../views/business/d102iniii/d51DependantsConfirm/d51DependantsConfirm.route'
import d52InjuryDependantsChange from '../views/business/d102iniii/d52InjuryDependantsChange/d52InjuryDependantsChange.route'
import d61PaymentPlan from '../views/business/d102iniii/d61PaymentPlan/d61PaymentPlan.route'
import d62SendToBank from '../views/business/d102iniii/d62SendToBank/d62SendToBank.route'
import d63PaymentHandle from '../views/business/d102iniii/d63PaymentHandle/d63PaymentHandle.route'

//工伤经办
import d12CognizeTransaction from '../views/business/d102iniii/d12CognizeTransaction/d12CognizeTransaction.route'

Vue.use(Router);

const Home = resolve => require(['../components/Home.vue'], resolve);
const Index = resolve => require(['../views/home/Index.vue'], resolve);

import Test from '../views/Test'
export default new Router({
    routes: [
        {
            path: '/test',
            component: Test
        },
        {
            path: '/', component: Home,
            children: [
                {
                    path: '/',
                    meta: {
                        title: '首页'
                    },
                    component: Index
                }
            ]
                .concat(sysRoute)

                .concat(d11companyregister)
                .concat(d12companychange)
                .concat(d21personinsure)
                .concat(d22personinfo)
                .concat(d23personmerge)
                .concat(d31normalratify)
                .concat(d32spacialratify)
                .concat(d33pschargedetail)
                .concat(d34cpchargedetail)
                .concat(d35wagedeclare)
                .concat(d41accountquery)
                .concat(d42transferin)
                .concat(d43transferout)
                .concat(d44accountmaintain)
                .concat(d71query)
                .concat(d72statistics)

                //机关保
                .concat(j11companyregister)
                .concat(j12companychange)
                .concat(j21personinsure)
                .concat(j31normalratify)
                .concat(j32spacialratify)
                .concat(j33pschargedetail)
                .concat(j34cpchargedetail)
                .concat(j35wagedeclare)
                .concat(j36cpclearing)
                .concat(j42transfer)
                .concat(j43transferout)
                .concat(j44move)
                //养老待遇
                .concat(d11qualification)
                .concat(d12pensionconfirm)
                .concat(d21statuschange)
                .concat(d22archivesalter)
                .concat(d24transference)
                .concat(d31paymentplan)
                .concat(d32sendtobank)
                .concat(d33paymenthandle)
                .concat(d41dependantsconfirm)
                .concat(d42dependantschange)
                .concat(d51reduceconfirm)
                .concat(d52reducechange)
                .concat(d61educationpersonmanage)

                //工伤待遇
                .concat(d32injuryconfirm)
                .concat(d22AppraiseTransaction)
                .concat(d21AppraiseApplication)
                //工伤
                .concat(d31injuryqualification)
                .concat(d11CognizeApplication)
                .concat(d12CognizeTransaction)
                .concat(d41statusmanagement)
                .concat(d43OrgManagement)
                .concat(d51DependantsConfirm)
                .concat(d52InjuryDependantsChange)
                .concat(d61PaymentPlan)
                .concat(d62SendToBank)
                .concat(d63PaymentHandle)
        }]
});
